public class Mystr {
    public static char[] reverse(char[] c,int begin,int end){
        char temp;
        while(end > begin){
            temp = c[begin];
            c[begin] = c[end];
            c[end] = temp;
            end--;
            begin++;
        }
        return c;
    }
}
